package com.kis.pattern.simplefactory;

/**
 * Created by yks on 15-11-11.
 */
public class ApiFactory {
    public static Api createApi(Integer flag){
        Api api = null;
        if(null==flag){
            api = new ApiImplA();
        }else{
            api = new ApiImplB();
        }
        return api;
    }
}
